package hibernate_advanced_apply.object_relevance_mapping.many_to_one;

import java.util.Set;
import java.util.TreeSet;

/**
 * @author Administrator
 * @create 2019-01-01 17:04
 * @desc 老师信息单向持久化类
 **/
public class Teacher {

    private int workId,age,height,weight;

    private String name;

    private Set<Student>set=new TreeSet();

    public int getWorkId() {
        return workId;
    }

    public void setWorkId(int workId) {
        this.workId = workId;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Student> getSet() {
        return set;
    }

    public void setSet(Set<Student> set) {
        this.set = set;
    }
}
